package com.qf.day12;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12
 * @Description: ${TODO}
 * @Date 2021/6/2 10:10
 */
public class TestAnimal2 {
    public static void main(String[] args) {
        Master fukang=new Master();
        fukang.setName("富康");
        Dog xiaohei=new Dog("泰迪", 1, "公", "黑色");
        Cat xiaobai=new Cat("波斯猫", 1, "公", "捉老鼠");
        //喂食
        fukang.feed(xiaohei);
        fukang.feed(xiaobai);

//        Animal a1=xiaobai;
//        Animal a2=xiaohei;


    }
}
